autogen.sh: replace all $(libbsdiff_srcpath) and $(libglnx_srcpath)
authorGiuseppe Scrivano <gscrivan@redhat.com>
Mon, 23 Feb 2015 10:57:02 +0000 (11:57 +0100)
committerColin Walters <walters@verbum.org>
Tue, 3 Mar 2015 17:16:17 +0000 (12:16 -0500)
The variable could be specified more times on the same line, having
something like:

EXTRA_DIST += ./libglnx/README $(libglnx_srcpath)/COPYING

Now the change ensures that it looks like:

EXTRA_DIST += ./libglnx/README ./libglnx/COPYING

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
autogen.sh

index da479e0716353d16e821f2dee24414493da09a46..3dc2b94b9da3a28395ff5b5fdbf5a27de77e7844 100755 (executable)
@@ -33,8 +33,8 @@ if ! test -f libglnx/README.md -o bsdiff/README.md; then
     git submodule update --init
 fi
 # Workaround automake bug with subdir-objects and computed paths
-sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx, < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
-sed -e 's,$(libbsdiff_srcpath),'${srcdir}/bsdiff, < bsdiff/Makefile-bsdiff.am >bsdiff/Makefile-bsdiff.am.inc
+sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
+sed -e 's,$(libbsdiff_srcpath),'${srcdir}/bsdiff,g < bsdiff/Makefile-bsdiff.am >bsdiff/Makefile-bsdiff.am.inc
 
 autoreconf --force --install --verbose